module MC.Call {
	export class SystemMsg {
		public constructor() { 
		}
		private qianzui='systemmsg';
		public getsysmsg_id_Array() {
			MC.api('getsysmsg_id_Array', {},  (data:any)=>{
			//	console.log(data);
				let count:any=0;
				for(var i=0;i<data.length;i++){
					var id=data[i];
					if(!MC.Cache.getStr(this.qianzui+id)){
						count++;
					}
				}
				$('#sys').text(count);
			});
		}

		/** 设置已读消息  */
		public yidu(id:string){
			MC.Cache.setStr(this.qianzui+id,'true');
		}

		/**  判断是否已经 */
		public isdu(id:string){
			return MC.Cache.getStr(this.qianzui+id);
		}
	}
}